package com.baizhi.controller;

import com.baizhi.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: renpu
 * @Date: 2019/6/24 16:48
 * @Description:
 */

@Controller
@RequestMapping("/redis")
public class RedisController {

    @Autowired
    private RedisUtil redisUtil;

    @RequestMapping("/redisTest")
    public void  redisTest(){
        redisUtil.set("a","niaho");
        String a =(String) redisUtil.get("a");
        System.out.println(a+"------sdcasdcadscasdcas---------");

    }



}
